class AIAssistant:
    def __init__(self, id, name, type, version, online, score):
        self.id = id
        self.name = name
        self.type = type
        self.version = version
        self.online = online
        self.score = score

    def __str__(self):
        status = "在线" if self.online else "离线"
        return f"ID:{self.id}, 名称:{self.name}, 类型:{self.type}, 版本:v{self.version}, 状态:{status}, 能力评分:{self.score}"

    def perform_task(self, task):
        return f"{self.name} 正在执行任务：{task}"
